package cn.hn3l.agriculture.entitis.behoof;

/**
 * @Author Wang Weiwei
 * @Since 16-10-17
 * @Describe
 * 适用症状
 */
public class Sympton implements Comparable<Sympton>{
    private int id;
    private String name;
    private String describe;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public int compareTo(Sympton o) {
        if (this.getName().equals(o.getName())) return 0;
        return this.getId() > o.getId() ? 1 : -1;
    }
}
